package messagesvc.common.enums;

import cn.ucloud.microsf.commonlib.enums.BaseEnum;
import com.baomidou.mybatisplus.annotation.EnumValue;
import lombok.Getter;

public enum TemplateType implements BaseEnum<Integer> {
    STATION(1, "站内信", true),
    SMS(2, "短信", false),
    EMAIL(3, "邮件", false),
    ;

    TemplateType(Integer code, String desc,  Boolean wide) {
        this.code = code;
        this.desc = desc;
        this.wide = wide;
    }

    @EnumValue
    @Getter
    private final Integer code;

    @Getter
    private final String desc;

    /**
     * 是否支持广播
     */
    @Getter
    private final Boolean wide;
}
